module.exports = {
  mode: "production",
  entry: {
    "Audio": "./src/audio/recorder.ts",
    "Video": "./src/video/recorder.ts"
  },
  output: {
    filename: "[name]Recorder.js",
    library: "[name]Recorder",
    libraryTarget: "window",
    libraryExport: "default",
    path: __dirname + "/dist/browser",
  },
  resolve: {
    extensions: [".ts", ".js"],
  },
  module: {
    rules: [
      {
        test: /\.ts$/,
        use: "ts-loader",
        exclude: /node_modules/,
      }
    ]
  }
}